package com.fl.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: fulin
 * @Date: 2021/05/22/10:30
 * @Description:
 */
@Data
@TableName("user")
public class User implements Serializable {

    private Long id;

    private String name;

    private int age;

    private String password;

    @Version//乐观锁注解
    private int version;

    @TableLogic//逻辑删除
    private int deleted;

    //字段填充内容
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
